package cn.good.biz.service;

import cn.good.pojo.Collect;
import cn.good.service.CollectService;
import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class GDCollectServiceImpl implements GDCollectService{

    @Reference
    private CollectService collectService;

    /**
     * 取消收藏
     * @param collect
     * @throws Exception
     */
    @Override
    public void articleCollect(Collect collect) throws Exception {
        collectService.articleCollect(collect);
    }

    /**
     * 收藏文章
     * @param collect
     * @throws Exception
     */
    @Override
    public void insertCollect(Collect collect) throws Exception {
        collectService.insertCollect(collect);
    }

    @Override
    public Collect findCollectByParam(Map<String, Object> param) throws Exception {
        return collectService.findCollect(param);
    }
}
